
<%@ page import="com.edusite.Curriculums" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="mainAlumno" />
        <g:set var="entityName" value="${message(code: 'curriculums.label', default: 'Curriculums')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/alumnos/indice')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${curriculumsInstance}">
            <div class="errors">
                <g:renderErrors bean="${curriculumsInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post"  enctype="multipart/form-data">
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="persona"><g:message code="curriculums.persona.label" default="Persona" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: curriculumsInstance, field: 'persona', 'errors')}">
                                    <g:select name="persona.id" from="${com.edusite.Personas.findByUsuario(session.user.usuario)}" optionKey="id" value="${curriculumsInstance?.persona?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="foto"><g:message code="curriculums.foto.label" default="Foto" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: curriculumsInstance, field: 'foto', 'errors')}">
                                    <input type="file" id="foto" name="foto" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="fecNac"><g:message code="curriculums.fecNac.label" default="Fec Nac" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: curriculumsInstance, field: 'fecNac', 'errors')}">
                                    <g:datePicker name="fecNac" precision="day" value="${curriculumsInstance?.fecNac}" noSelection="['': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="fugarNac"><g:message code="curriculums.fugarNac.label" default="Fugar Nac" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: curriculumsInstance, field: 'fugarNac', 'errors')}">
                                    <g:textField name="fugarNac" value="${curriculumsInstance?.fugarNac}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="eCivil"><g:message code="curriculums.eCivil.label" default="EC ivil" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: curriculumsInstance, field: 'eCivil', 'errors')}">
                                    <g:textField name="eCivil" value="${curriculumsInstance?.eCivil}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="fAcademica"><g:message code="curriculums.fAcademica.label" default="FA cademica" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: curriculumsInstance, field: 'fAcademica', 'errors')}">
                                    <g:textField name="fAcademica" value="${curriculumsInstance?.fAcademica}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="oTitulos"><g:message code="curriculums.oTitulos.label" default="OT itulos" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: curriculumsInstance, field: 'oTitulos', 'errors')}">
                                    <g:textField name="oTitulos" value="${curriculumsInstance?.oTitulos}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="eProfesional"><g:message code="curriculums.eProfesional.label" default="EP rofesional" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: curriculumsInstance, field: 'eProfesional', 'errors')}">
                                    <g:textField name="eProfesional" value="${curriculumsInstance?.eProfesional}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="idiomas"><g:message code="curriculums.idiomas.label" default="Idiomas" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: curriculumsInstance, field: 'idiomas', 'errors')}">
                                    <g:textField name="idiomas" value="${curriculumsInstance?.idiomas}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
